{template head}
<script type="text/javascript">
var ajaxparam = {
		'url' : '{SITE_URL}/ajax/index.php'
};

function deladmin(id,status,str){
	if(id)
	{
		
		layer.confirm('你确定执行'+str+'操作吗？', {
		  time: 0 //不自动关闭
		  ,btn: ['很确定', '点错了']
		  ,yes: function(index){
		    layer.close(index);
		    
		    
		    var url = ajaxparam.url + '?m=zhStatus';
			var data = {
					'id' : id,
					'status':status,
					'str':str,
			};
			var callback = function(data){
				if(data.sign == 1)
				{
					layer.alert(data.msg,function(){
						window.location = window.location;
					});
				}
				else
				{
					if(data.msg)
					{
						layer.msg(data.msg);
					}
					else
					{
						layer.msg('操作失败');
					}
				}
			};
			makeAjax('post',url,data,callback);
		    
		    
		    
		    
		    
		    
		    
		    
		  }
		});
		
		
		
		
	}else{
		alert('参数错误');
	}
}

</script>
<body>
<div class="wrapper">
	<div class="crumbs"><a href="{SITE_URL}index.php?a={$action}">{$fTitle}</a> &gt; <span>{$sTitle}</span> </div>
	
	<div class="container_tit clearfix mb20 ft14">
	
	<form action="{SITE_URL}index.php?a={$action}" method="get">
		<input type="hidden" name="a" value="{$action}" />
        
        <div class="choose fl mr15">
            <select class="select w150" name="type">
            	<option value="">查询条件</option>
            	<!--{if is_array($typearr)}-->
            	<!--{loop $typearr $key $one}-->
            	<!--{if $key==$parm['type']}-->
            	<option value="{$key}" selected>{$one}</option>
            	<!--{else}-->
            	<option value="{$key}">{$one}</option>
            	<!--{/if}-->
            	<!--{/loop}-->
            	<!--{/if}-->
            </select>
            <input type="text" id="keyword" name="keyword" class="mr15 w200 text" value="{$parm['keyword']}">
        </div>
       
        <div class="btn_box fl">
        	<input type="submit" name="submit" class="btnblue mr15" value="搜索">
        </div>
        
        <div class="btn_box fl">
        	<a href="{SITE_URL}index.php?a={$action}&m=send" class="btnyellow mr15">发送短信</a>
        </div>
    </form>
    </div>
	
	<!-- list -->
	<table class="table">
		<thead>
			<tr class="bg_h_1">
				<th width="">发送时间</th>
				<th width="">发送状态</th>
				<th width="">发送内容</th>
				<th width="">手机号</th>
				<th width="">接收状态</th>
			</tr>
		</thead>
		<tbody>
		<!--{loop $list $key $one}-->
			<tr>
				<td style="text-align: center;">{php echo time_formart($one['addtime'],2)}</td>
				<td style="text-align: center;">
					{if $one[status1] == 1}
						发送成功
					{else}
						发送失败
					{/if}
				</td>
				<td style="text-align: center;    width: 500px;">
					{$one[content]}
				</td>
				<td style="text-align: center;">
					{$one[phone]}
				</td>
				<td style="text-align: center;">
					{if $one[status2] == 1}
						接收成功
					{elseif $one[status2] == 2}
						接收失败
					{else}
						
					{/if}
				</td>
			</tr>
		<!--{/loop}-->
		</tbody>
	</table>
</div>

<!--{php pagenav($pageurl,$page,$pagetotal);}-->
{template foot}